import { ApiCall } from "tsrpc";
import { ReqBackHomeWord, ResBackHomeWord } from "../../../shared/master/word/PtlBackHomeWord";
import { player } from "../../../model/fight/body/player";
import manage_word from "../../model/manage/manage_word";
import { template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqBackHomeWord, ResBackHomeWord>) {
    call.succ({})
    let user = call.req._player as player;
    let info = await manage_word.transfer(user,'1');
    user.sendMsg(template.default,info.msg)
}